package aop;

import java.lang.reflect.Method;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class ServiceInterceptor implements org.springframework.aop.MethodBeforeAdvice {
	
	//@Around("execution(* test.spring.db.service.*.save*(..))")
	public Object saveInterceptor(ProceedingJoinPoint proceedingJoinPoint){
		return proceedingJoinPoint;
	}
	
	//@Around("execution(* test.spring.db.service.*.save*(..))")
	public Object updateInterceptor(ProceedingJoinPoint proceedingJoinPoint){
		return proceedingJoinPoint;
	}
	
	//@Around("execution(* test.spring.db.service.*.save*(..))")
	public Object daleteInterceptor(ProceedingJoinPoint proceedingJoinPoint){
		return proceedingJoinPoint;
	}

	public void before(Method method, Object[] args, Object target) throws Throwable {
		
	}

}
